package org.info.stock.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
@TableName("latest_stocks")
public class LatestStocks implements Serializable {
    private static final long serialVersionUID = 7483696069703575838L;
    @TableId(value = "id", type = IdType.NONE)
    private int id;
    private String code;
    private String name;
    //涨跌幅chg_rate
    private float deltaPercent;
    //涨跌change_a
    private float delta;
    private float open;
    //最新last
    private float now;
    private float high;
    private float low;
    private int amount;
    private int volume;
    //prev_close
    private float close;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyy-MM-dd HH:mm:ss")
    private Date updatetime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyy-MM-dd HH:mm:ss")
    private Date createtime;

}
